package com.xunsiya.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件上传配置
 *
 * @author SiChunyang
 * @version 1.0
 *          <p>
 *          <p>
 *          <p>修订人		修订时间			描述信息
 *          <p>-----------------------------------------------------
 *          <p>SiChunyang		2018/5/28		初始创建
 */
@Component
@ConfigurationProperties(prefix = "upload")
public class UploadConfig {

    /**
     * 最大文件上传体积, 默认50MB
     */
    private String maxFileSize = "50MB";

    /**
     * 最大的请求体体积, 默认1024000KB
     */
    private String maxRequestSize = "1024000KB";

    public String getMaxFileSize() {
        return maxFileSize;
    }

    public void setMaxFileSize(String maxFileSize) {
        this.maxFileSize = maxFileSize;
    }

    public String getMaxRequestSize() {
        return maxRequestSize;
    }

    public void setMaxRequestSize(String maxRequestSize) {
        this.maxRequestSize = maxRequestSize;
    }
}
